const { ccclass, property } = cc._decorator;
@ccclass
export default class CollisionCallback extends cc.Component {
    public onCollisionEnter: (other, self) => void = null;
    public onCollisionExit: (other, self) => void = null;
    onDestroy() {
        //碰撞组件被销毁的时候
        this.onCollisionEnter = this.onCollisionExit = null;
    }
}